package departamento;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateless
@LocalBean
public class DepartamentoEJB {

		@PersistenceContext
		private EntityManager myManager;
		
		public void create(Departamento objDpto) {
			myManager.persist(objDpto);
		}
		
		public DepartamentoEJB(){
			//Empty constructor
		}
}
